import send from '../../http'
export default {
  // 获取微信官方客服授权地址
  getWxkfAuthUrl (data) {
    let req = {
      data,
      action: 'config.channel.getWxkfAuthUrl'
    }
    return send.fetch(req, 'post')
  },
  getWxkfWorkConfigs (data) {
    let req = {
      data,
      action: 'config.channel.getWxkfWorkConfigs'
    }
    return send.fetch(req, 'post')
  },
  addWxkfAccount (data) {
    let req = {
      data,
      action: 'config.channel.addWxkfAccount'
    }
    return send.fetch(req, 'post')
  },
  updateWxkfAccount (data) {
    let req = {
      data,
      action: 'config.channel.updateWxkfAccount'
    }
    return send.fetch(req, 'post')
  },
  deleteWxkfAccount (data) {
    let req = {
      data,
      action: 'config.channel.deleteWxkfAccount'
    }
    return send.fetch(req, 'post')
  },
  getWxkfConfigs (data) {
    let req = {
      data,
      action: 'config.channel.getWxkfConfigs'
    }
    return send.fetch(req, 'post')
  },
  saveWxkfConfig (data) {
    let req = {
      data,
      action: 'config.channel.saveWxkfConfig'
    }
    return send.fetch(req, 'post')
  },
  updateWxkfConfig (data) {
    let req = {
      data,
      action: 'config.channel.updateWxkfConfig'
    }
    return send.fetch(req, 'post')
  },
  removeWxkfConfig (data) {
    let req = {
      data,
      action: 'config.channel.removeWxkfConfig'
    }
    return send.fetch(req, 'post')
  },
  getWxkfConfigById (data) {
    let req = {
      data,
      action: 'config.channel.getWxkfConfigById'
    }
    return send.fetch(req, 'post')
  },
  getContactWay (data) {
    let req = {
      data,
      action: 'config.channel.getContactWay'
    }
    return send.fetch(req, 'post')
  }
}
